<div class="row-content layer-cf">
    <div class="row">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="widget layer-cf">
                <form id="my-form" class="layer-form tpl-form-line-form" enctype="multipart/form-data" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head layer-cf">
                                <div class="widget-title layer-fl">管理员设置</div>
                            </div>
                            <div class="layer-form-group">
                                <label class="layui-col-sm3 layer-form-label form-require"> 用户名 </label>
                                <div class="layui-col-sm9">
                                    <input type="text" class="tpl-form-input" name="user[user_name]"
                                           value="<?= $model['user_name'] ?>" required>
                                </div>
                            </div>
                            <div class="layer-form-group">
                                <label class="layui-col-sm3 layer-form-label form-require"> 登录密码 </label>
                                <div class="layui-col-sm9">
                                    <input type="password" class="tpl-form-input" name="user[password]"
                                           value="" required>
                                </div>
                            </div>
                            <div class="layer-form-group">
                                <label class="layui-col-sm3 layer-form-label form-require"> 确认密码 </label>
                                <div class="layui-col-sm9">
                                    <input type="password" class="tpl-form-input" name="user[password_confirm]"
                                           value="" required>
                                </div>
                            </div>
                            <div class="layer-form-group">
                                <div class="layui-col-sm9 layui-col-smpush-3 layer-margin-top-lg">
                                    <button type="submit" class="j-submit layer-btn layer-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        /**
         * 表单验证提交
         * @type {*}
         */
        $('#my-form').superForm();

    });
</script>
